package com.nuaa.shopping.service.impl;

import java.util.List;

import com.nuaa.shopping.dao.ProductDao;
import com.nuaa.shopping.dao.impl.ProductDaoImpl;
import com.nuaa.shopping.entity.Product;
import com.nuaa.shopping.service.ProductService;

public class ProductServiceImpl implements ProductService{

	private ProductDao productDao = new  ProductDaoImpl();
	
	@Override
	public List<Product> findAll() {
		return productDao.selectAll();
	}

	@Override
	public Product findById(int id) {
		return productDao.selectById(id);
	}

}
